/* 生日祝福弹窗样式 */

.birthday-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.5s ease;
}

.birthday-modal-content {
    background: linear-gradient(135deg, #fff0f5, #ffe4e1);
    margin: 10% auto;
    padding: 25px;
    border: 2px solid #ff69b4;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(255,105,180,0.5);
    position: relative;
    animation: slideIn 0.5s ease;
}

.close-modal {
    color: #ff1493;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff69b4;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.2);
}

.birthday-modal-content h2 {
    color: #ff1493;
    margin-top: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.birthday-modal-content p {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 15px 0;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* 心形装饰 */
.modal-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.modal-heart {
    position: absolute;
    font-size: 20px;
    color: #ff1493;
    opacity: 0.5;
    animation: float-heart 3s infinite ease-in-out;
}

@keyframes float-heart {
    0% {transform: translateY(0) rotate(0deg);}
    50% {transform: translateY(-20px) rotate(10deg);}
    100% {transform: translateY(0) rotate(0deg);}
}

/* 响应式设计 */
@media (max-width: 768px) {
    .birthday-modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }
    
    .birthday-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .birthday-modal-content p {
        font-size: 1rem;
    }
}

/* 按钮样式 */
.modal-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    margin: 15px auto;
    display: block;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255,105,180,0.3);
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255,105,180,0.4);
}

.modal-btn:active {
    transform: translateY(1px);
} 